/**
 * file转base64
 */
const blobToDataURL = (blob) => {
  return new Promise((resolve) => {
    let reader = new FileReader();
    reader.onload = function (evt) {
      let base64 = evt.target.result;
      resolve(base64);
    };
    reader.readAsDataURL(blob);
  });
};
export default blobToDataURL;
